class UpdateInfo {
  int status;
  String message;
  Data data;

  UpdateInfo({this.status, this.message, this.data});

  UpdateInfo.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    message = json['message'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class Data {
  int source;
  String content;
  int level;
  bool forceUpdate;
  String sId;
  String versionCode;
  String url;
  String createdAt;
  String updatedAt;

  Data(
      {this.source,
      this.content,
      this.level,
      this.forceUpdate,
      this.sId,
      this.versionCode,
      this.url,
      this.createdAt,
      this.updatedAt});

  Data.fromJson(Map<String, dynamic> json) {
    source = json['source'];
    content = json['content'];
    level = json['level'];
    forceUpdate = json['force_update'];
    sId = json['_id'];
    versionCode = json['version_code'];
    url = json['url'];
    createdAt = json['createdAt'];
    updatedAt = json['updatedAt'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['source'] = this.source;
    data['content'] = this.content;
    data['level'] = this.level;
    data['force_update'] = this.forceUpdate;
    data['_id'] = this.sId;
    data['version_code'] = this.versionCode;
    data['url'] = this.url;
    data['createdAt'] = this.createdAt;
    data['updatedAt'] = this.updatedAt;
    return data;
  }
}
